Skip to content

bpo-40269: Fix repr for complex.#19593

Closed
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:wip-complex-repr
Closed

bpo-40269: Fix repr for complex.#19593
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:wip-complex-repr

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 19, 2020

Copy link
Copy Markdown
Member

eval(repr(z)) restores now the sign of zero components of z.

https://bugs.python.org/issue40269

eval(repr(z)) restores now the sign of zero components of z.
@serhiy-storchaka serhiy-storchaka changed the title bpo-22548: Fix repr for complex. bpo-40269: Fix repr for complex. Apr 19, 2020
@iritkatriel

Copy link
Copy Markdown
Member

https://bugs.python.org/issue40269 is closed. What is the status of this PR?

@rhettinger rhettinger requested a review from mdickinson May 10, 2022 20:39
@mdickinson

Copy link
Copy Markdown
Member

What is the status of this PR?

Let's close, for the reasons discussed in the issue. It's an interesting proof of concept - yes, we can technically fix the repr so that eval(repr(z)) round trips for these cases, but if it's at the expense of a repr like "-(-0.0-0j)" in some corner cases, I don't think it's worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants